package com.sali.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: sali
 * @date: 2025/2/21 下午10:44.
 * @version: 1.0
 */
@Configuration
@ConfigurationProperties(prefix = "thread")
@Data
public class ThreadConfig {

    // 公共线程池核心数大小(1-100)
    private int corePoolSize;

    // 公共线程池最大线程数(1-100)
    private int maximumPoolSize;

    // 公共线程池队列大小
    private int keepAliveTime;

    // 线程空闲回收时间单位s(1-10)
    private int capacity;

}
